import request from "@/utils/request";

/**
 *博客内容
 */


export function blogsGet(page) {
  return request({
    url: '/blog/blogList/'+page,
    method: 'get'
  }).then(
    res => {
      return res.data;
    }
  )
}


export function blogsHome() {
  return request({
    url: '/blog/getHomeBlogs',
    method: 'get'
  }).then(
      res => {
        return res.data;
      }
  )
}

export const blogGet = (blogId) => {
    return request({
        url: '/blog/blog/'+blogId,
        method: 'get',
    }).then(
        res => {
            return res.data;
        }
    )
};
